package com.nashuju.web.controller.login;

import org.durcframework.core.GridResult;
import org.durcframework.core.MessageResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nashuju.web.common.DataPermissionController;
import com.nashuju.web.entity.sys.OrderInfo;
import com.nashuju.web.entity.sys.OrderInfoSch;
import com.nashuju.web.service.login.OrderInfoService;

@Controller
public class OrderInfoController extends DataPermissionController<OrderInfo, OrderInfoService> {


    @RequestMapping("/addOrderInfo.do")
    public @ResponseBody MessageResult addOrderInfo(OrderInfo entity) {
        return this.save(entity);
    }

    @RequestMapping("/listOrderInfo.do")
    public @ResponseBody GridResult listOrderInfo(OrderInfoSch searchEntity) {
        return this.query(searchEntity);
    }

    @RequestMapping("/updateOrderInfo.do")
    public @ResponseBody MessageResult updateOrderInfo(OrderInfo enity) {
        return this.update(enity);
    }

    @RequestMapping("/delOrderInfo.do")
    public @ResponseBody MessageResult delDataSource(OrderInfo enity) {
        return this.delete(enity);
    }

}
